package org.hzandyy.framework.liteflow.flow;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeIteratorComponent;

import java.util.Iterator;
import java.util.List;

/**
 * @author hz
 * @since 2023/12/8 10:07
 */
@LiteflowComponent("node_iterator")
public class NodeIteratorCmp extends NodeIteratorComponent {

    @Override
    public Iterator<?> processIterator() throws Exception {
        return List.of("a,b,c,d,e,f".split(",")).iterator();
    }

}
